raar.language
Class RALogExpression
java.lang.Object
raar.language.RALogExpression
- All Implemented Interfaces:
- java.io.Serializable, RALogObject
public class RALogExpression
- extends java.lang.Object
- implements RALogObject
- See Also:
- Serialized Form
|
Field Summary |
static int |
AND
|
static int |
NOT
|
static int |
OR
|
|
Method Summary |
boolean |
bValue()
|
boolean |
evaluate()
Returns an evaluation of this expression. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AND
public static final int AND
- See Also:
- Constant Field Values
OR
public static final int OR
- See Also:
- Constant Field Values
NOT
public static final int NOT
- See Also:
- Constant Field Values
RALogExpression
public RALogExpression(RALogObject p,
RALogObject q,
int operation)
evaluate
public boolean evaluate()
throws RAException
- Returns an evaluation of this expression. If p is null, it is always false. If q is null, it is always false,
except when the operation is NOT and p is not null. Then it simply evaluates (NOT p).
- Throws:
RAException
bValue
public boolean bValue()
throws RAException
- Specified by:
bValue in interface RALogObject
- Throws:
RAException